package com.adams.dcxt.service;

import java.util.HashMap;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.adams.dcxt.bean.DishesType;
import com.adams.dcxt.dao.DishesTypeDao;

@Service("dishesTypeSerice")
@Transactional
public class DishesTypeServiceImpl implements DishesTypeService{

    @Autowired 
    private  DishesTypeDao  dishesTypeDao ;
    @Override
    public List<DishesType> queryAll() {
        String  hql =" from DishesType  order by orders desc ,id desc ";
        return dishesTypeDao.query(hql, new HashMap());
    }

}
